﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ProTrack.Dto
{
    /// <summary>
    /// 物料产品Dto
    /// </summary>
    public class ItemDto
    {

        /// <summary>
        /// 产品物料ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 产品物料编码
        /// </summary>
        public string ItemCode { get; set; }

        /// <summary>
        /// 线别
        /// </summary>
        public string LineType { get; set; }


        /// <summary>
        /// 供应商
        /// </summary>
        public string Vendor { get; set; }


        /// <summary>
        /// 产品物料名称
        /// </summary>
        public string ItemName { get; set; }


        /// <summary>
        /// 规格
        /// </summary>
        public string Spec { get; set; }


        /// <summary>
        /// 型号
        /// </summary>
        public string Model { get; set; }


        /// <summary>
        /// 有效日期
        /// </summary>
        public string EffectiveDate { get; set; }


        /// <summary>
        /// 单位
        /// </summary>
        public string UnitOfMeasure { get; set; }


        /// <summary>
        /// 品类
        /// </summary>
        public string Kind { get; set; }


        /// <summary>
        /// 产品物料标识
        /// </summary>
        public string ItemOrProduct { get; set; }


        /// <summary>
        /// 物料类型ID
        /// </summary>
        public long ItemTypeId { get; set; }


        /// <summary>
        /// 物料类型编码
        /// </summary>
        public string ItemTypeCode { get; set; }


        /// <summary>
        /// 物料类型名称
        /// </summary>
        public string ItemTypeName { get; set; }


        /// <summary>
        /// 是否启用
        /// </summary>
        public char EnableFlag { get; set; }


        /// <summary>
        /// 是否设置安全库存
        /// </summary>
        public char SafeStockFlag { get; set; }


        /// <summary>
        /// 最低库存量
        /// </summary>
        public decimal? MinStock { get; set; }


        /// <summary>
        /// 最大库存量
        /// </summary>
        public decimal? MaxStock { get; set; }


        /// <summary>
        /// 采购价
        /// </summary>
        public decimal? PurchasePrice { get; set; }


        /// <summary>
        /// 销售价
        /// </summary>
        public decimal? SalePrice { get; set; }





        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }


        /// <summary>
        /// 创建者
        /// </summary>
        public string Creator { get; set; }


        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }


        /// <summary>
        /// 更新者
        /// </summary>
        public string Updater { get; set; }


        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }


        /// <summary>
        /// 转化后数值
        /// </summary>
        public string QuantityTos { get; set; }


        /// <summary>
        /// 数量
        /// </summary>
        public decimal? Quantity { get; set; }


        /// <summary>
        /// 换算后单位
        /// </summary>
        public string UnitTo { get; set; }
        public string WareHouseId { get; set; }
        public string WareHouseName { get; set; }

        public int SalesCount { get; set; }
        public int StockCount { get; set; }

        /// <summary>
        /// 当前数量
        /// </summary>
        public int CurrCount { get; set; }


        /// <summary>
        /// 是否删除
        /// </summary>
        public bool Deleted { get; set; }

    }
}
